﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace parkour
{
   public partial class SiteMaster : System.Web.UI.MasterPage
   {
      #region Variables

      private string last_name,        // The last name of the user
                     my_user_ID,       // The user's id
                     first_name;       // The first name of the user
      private int    user_permissions; // The permission level for the user
      public Classes.clsRegistrationInfo VehicleRegistration; // The info for registering a vehicle

      #endregion

      #region Properties

      /// <summary>
      /// Get and set the user permission level
      /// </summary>
      public int permission_level
      {
         get { return user_permissions; }
         set { user_permissions = value; }
      }

      /// <summary>
      /// Gets and sets the user name
      /// </summary>
      public string user_ID
      {

         get { return my_user_ID; }
         set { my_user_ID = value; }

      }

      /// <summary>
      /// Get or set the user's last name
      /// </summary>
      public string user_last_name
      {
         get { return last_name; }
         set { last_name = value; }
      }

      /// <summary>
      /// Get and set property for the user first name
      /// </summary>
      public string user_first_name
      {
         get
         {
            return first_name;
         }
         set
         {
            first_name = value;
         }
      }

      /// <summary>
      /// Set the logout button visibility
      /// </summary>
      public Boolean logout_visibility
      {
         set
         {
            btnLogout.Visible = value;
         }
      }

      #endregion

      #region Functions

      /// <summary>
      /// Page load initialization
      /// </summary>
      /// <param name="sender"></param>
      /// <param name="e"></param>
      protected void Page_Load(object sender, EventArgs e)
      {

      }

      #endregion

      #region Events
      #endregion
   }
}
